package com.spy.material.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.spy.material.dto.InventoryDetailQueryDTO;
import com.spy.material.vo.InventoryDetailVO;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import com.spy.material.domain.InventoryDetail;

/**
 * 库存明细Mapper接口
 *
 * @author twc
 * @date 2025-11-09
 */
@Mapper
public interface InventoryDetailMapper extends BaseMapper<InventoryDetail>
{
    /**
     * 查询库存明细
     *
     * @param id 库存明细主键
     * @return 库存明细
     */
    public InventoryDetail selectInventoryDetailById(Long id);

    /**
     * 查询库存明细列表
     *
     * @param inventoryDetail 库存明细
     * @return 库存明细集合
     */
    public List<InventoryDetail> selectInventoryDetailList(InventoryDetail inventoryDetail);

    /**
     * 新增库存明细
     *
     * @param inventoryDetail 库存明细
     * @return 结果
     */
    public int insertInventoryDetail(InventoryDetail inventoryDetail);

    /**
     * 修改库存明细
     *
     * @param inventoryDetail 库存明细
     * @return 结果
     */
    public int updateInventoryDetail(InventoryDetail inventoryDetail);

    /**
     * 删除库存明细
     *
     * @param id 库存明细主键
     * @return 结果
     */
    public int deleteInventoryDetailById(Long id);

    /**
     * 批量删除库存明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInventoryDetailByIds(Long[] ids);

    Page<InventoryDetailVO> all(InventoryDetailQueryDTO inventoryDetailQueryDTO);


}